<?php 
use backend\assets\AgentAsset;
use yii\helpers\Html;
use yii\widgets\LinkPager;
AgentAsset::register($this);
?>
<table class="table table-bordered">
    <thead>
        <tr>
            <th>员工</th>
            <th>电话</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<?php foreach ($list as $r):?>
        <tr>
            <td class="name"><?=Html::encode($r['employee_name'])?></td>
            <td><?=Html::encode($r['employee_mobile'])?><input type="hidden" name="employee_id" value="<?=$r['employee_id']?>"></td>
            <td><a class="ok btn btn-sm btn-borB" href="javascript:;">确定</a></td>
        </tr>
        <?php endforeach;?>
    </tbody>
</table>
<div class="page" style="text-align:center;">
                   <?=LinkPager::widget([
					    'pagination' => $page,
						'firstPageLabel' => '首页',
						'nextPageLabel' => '下一页',
						'prevPageLabel' => '上一页',
						'lastPageLabel' => '末页',
					    'hideOnSinglePage'=>false
					]); ?>
                </div>
<?php $this->registerJsFile("@web/system/financial/cashier/staff.js",['position'=>$this::POS_END]);?>